package com.yuncheng.spcyApi.constant.jcy;


import com.yuncheng.spcyApi.constant.common.SpcyConstant;
import org.apache.commons.lang3.StringUtils;

/**
 * 检查员登记表-静态变量
 */
public class JcydjbConstant {

    // 检查员登记表-模板文件名称
    public final static String JCYDJB_TEMPLATE_NAME = "jcy/jcydjbTemplate.docx";

    // 检查员遴选-登记表模板名称1
    public final static String JCYDLX_TEMPLATE_NAME = "jcy/jcylxTemplateFile.docx";

    // 检查员遴选-登记表模板名称2
    public final static String JCYDLX_TEMPLATE_NAME2 = "jcy/jcylxTemplateFile2.docx";

    // 检查员解聘-人员名单模板
    public final static String JCYJP_TEMPLATE_NAME = "jcy/jcyJpTemplateFile.docx";

    // 检查员聘任-拟聘-人员名单模板
    public final static String JCYPR_Nprymd_TEMPLATE_NAME = "jcy/jcyPrNpmdTemplate.docx";

    // 检查员聘任-确认名单-人员名单模板
    public final static String JCYPR_RymdQr_TEMPLATE_NAME = "jcy/jcyPrmdQrTemplate.docx";

    // 检查员遴选-报名审核-人员名单模板
    public final static String JCYLX_BMSH_TEMPLATE_NAME = "jcy/jcyLxBmshRymdTemplate.docx";
    // 审核不通过模板
    public final static String JCYLX_BMSH_BTG_TEMPLATE_NAME = "jcy/jcyLxBmshRymdTemplate-btg.docx";

    // 检查员遴选-确认名单-人员名单模板
    public final static String JCYLX_QRMD_TEMPLATE_NAME = "jcy/jcyLxQrmdTemplate.docx";

    /** 检查员登记表 数据采集状态 */
    public final static String SJCJZT_TXZ = "填写中";
    public final static String SJCJZT_YTJ = "已提交";

    // 遴选最终状态
    public final static String LX_SJCJZT_YWC = "已完成";

    public final static String SJCJZT_YLZ = "预览中";
    public final static String SJCJZT_FQ = "废弃";

    /**
     * 账户状态
     */
    public final static String ZHZT_YSC = "已生成";
    public final static String ZHZT_WSC = "未生成";

    /** 审核状态  */
    public final static String SHZT_YSC = "已审核";

    /**
     * 检查员工作经历-至今
     */
    public final static String GZJL_END_TIME_ZJ = "至今";

    /** 检查员类别 */
    public final static String DJB_JCY_LBS = "药物临床,药品注册生产,药品流通,医疗器械生产流通,医疗器械临床,化妆品生产";

    /** 检查员小类 */
    public final static String JCY_XLS = "药物临床,药品注册,药品生产,药品流通,医疗器械生产流通,医疗器械临床,化妆品生产";

    public final static String LB_YPLC =  "药物临床";
    public final static String LB_YPZCSC =  "药品注册生产";  // 具有小类 药品注册、药品生产
    public final static String LB_YPLT =  "药品流通";
    public final static String LB_YLQXSCLT =  "医疗器械生产流通";
    public final static String LB_YLQXLC =  "医疗器械临床";
    public final static String LB_HZPJCY =  "化妆品生产";

    public final static String LB_YPZCSC_YPZC = "药品注册";
    public final static String LB_YPZCSC_YPSC = "药品生产";

    public final static String SYS_CONFIG_LBS_CODE = "jcydj-lb-list"; // 检查员类别

    /** 系统参数 */
    public final static String SYS_CONFIG_JCYTC_YWLC_JCTC = "JCYTC_YWLC_JCTC"; // 药物临床
    public final static String SYS_CONFIG_JCYTC_YPZCSC_JCTC = "JCYTC_YPZCSC_JCTC"; // 药品注册生产
    public final static String SYS_CONFIG_JCYTC_YPLT_JCTC = "JCYTC_YPLT_JCTC"; // 药品流通
    public final static String SYS_CONFIG_JCYTC_YLQXSCLT_JCTC = "JCYTC_YLQXSCLT_JCTC"; // 医疗器械生产流通
    public final static String SYS_CONFIG_JCYTC_YLQXLC_JCTC = "JCYTC_YLQXLC_JCTC"; // 医疗器械临床
    public final static String SYS_CONFIG_JCYTC_HZPJCY_JCTC = "JCYTC_HZPJCY_JCTC"; // 化妆品生产

    // 登记表发送验证状态
    public final static String SYS_CONFIG_QRCODE_SECODE_STATE = "jcydjb-send-sms-state";

    /*public final static String YWLC_JCTC = "临床,药学,安全性评价,民族药,食品,审查";
    public final static String YPZCSC_JCTC = "质量管理,生产管理,无菌保障,检验";
    public final static String YPLT_JCTC = "";
    public final static String YLQXSCLT_JCTC = "质量管理,生产管理,质量控制与质量保证,无菌保障,检验";
    public final static String YLQXLC_JCTC = "质量管理,生产管理,确认与验证,质量控制与质量保证,无菌保障";
    public final static String HZPJCY_JCTC = "质量管理,生产管理,确认与验证,质量控制与质量保证,无菌保障";*/


    /** 根据检查员类别-获取检查员小类 */
    public static String getJcyxlByJcyLb(String jcylb){
        if (StringUtils.isBlank(jcylb)){
            return "";
        }

        return jcylb;
    }

    /** 根据检查员类别-获取检查员小类 */
    public static String getJcyxlByJcyLb2(String jcylb){
        if (StringUtils.isBlank(jcylb)){
            return "";
        }

        if (jcylb.equals(LB_YPZCSC)){
            return LB_YPZCSC_YPSC;
        }else if (jcylb.equals(LB_YPZCSC)){
            return LB_YPZCSC_YPZC;
        }

        return jcylb;
    }

    /** 根据检查员小类-获取对应的检查员类别 */
    public static String getJcylbByJcyxl(String jcyxl){
        if (StringUtils.isBlank(jcyxl)){
            return "";
        }

        if (jcyxl.equals(LB_YPZCSC_YPZC)){
            return LB_YPZCSC;
        }else if (jcyxl.equals(LB_YPZCSC_YPSC)){
            return LB_YPZCSC;
        }else {
            return jcyxl;
        }
    }

    /** 获取检查员类别 根据业务分类编码 */
    public static String getJcylxByYwflcode(String fywflcode){
        String lx = null;

        if (StringUtils.isBlank(fywflcode)){
            lx = LB_YPZCSC;
        }else {
            if (fywflcode.equals(SpcyConstant.YWFL_CODE_YPZC)){
                lx = LB_YPZCSC;
            }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_YPSC)){
                lx = LB_YPZCSC;
            }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_YPJY)){
                lx = LB_YPLT;
            }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_YLQX)){
                lx = LB_YLQXSCLT;
            }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_HZP)){
                lx = LB_HZPJCY;
            }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_YPZCLC)){
                lx = LB_YPLC;
            }
        }

        return lx;
    }

    /** 获取检查员小类 根据业务分类编码 */
    public static String getJcyXlByYwflcode(String fywflcode){
        String lx = null;

        if (StringUtils.isBlank(fywflcode)){
            lx = LB_YPZCSC_YPSC;
        }else {
            if (fywflcode.equals(SpcyConstant.YWFL_CODE_YPZC)){
                lx = LB_YPZCSC_YPZC;
            }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_YPSC)){
                lx = LB_YPZCSC_YPSC;
            }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_YPJY)){
                lx = LB_YPLT;
            }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_YLQX)){
                lx = LB_YLQXSCLT;
            }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_HZP)){
                lx = LB_HZPJCY;
            }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_YPZCLC)){
                lx = LB_YPLC;
            }
        }

        return lx;
    }
}
